package nu.mine.tbje.easyEDT;

import java.util.Calendar;
import java.util.GregorianCalendar;

import junit.framework.TestCase;

public class NavigationTest extends TestCase {

	public void testDate(){
		Calendar cal = GregorianCalendar.getInstance();
		Navigation n = new Navigation();
		cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.WEDNESDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
		cal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
		System.out.println("Prev: " + n.prev(cal.getTime()));
		System.out.println("Next: " +n.next(cal.getTime()));
	}
}
